import request from '@/utils/request'
import httpRequest from '@/utils/httpRequest'
// 查询辅资源组列表
export function listRs(query) {
  return httpRequest({
    url: httpRequest.adornUrl('/plm/rs/list'),
    method: 'get',
    params: query
  })
}

// 查询辅资源组详细
export function getRs(id) {
  return request({
    url: '/plm/rs/' + id,
    method: 'get'
  })
}

// 新增辅资源组
export function addRs(data) {
  return request({
    url: '/plm/rs',
    method: 'post',
    data: data
  })
}

// 修改辅资源组
export function updateRs(data) {
  return request({
    url: '/plm/rs',
    method: 'put',
    data: data
  })
}

// 删除辅资源组
export function delRs(id) {
  return request({
    url: '/plm/rs/' + id,
    method: 'delete'
  })
}
